package com.microservice.base.service;

import com.microservice.base.entity.Person;
import com.microservice.base.entity.User;

import java.util.List;
import java.util.Map;

/**
 * @author jbx
 * @package_name com.microservice.base.service
 * @create_date 2020/12/7 10:03
 */
public interface TbPersonSV extends BaseSV<Person>{
  /**
   * 将用户转为person
   * @param operationType
   */
  void userToPerson(String operationType);

  /**
   * 查询全部的数据,用来判断是否存在数据
   * @return
   */
  @Override
  List<Person> queryAll();
  /**
   * 将person保存
   * @param user
   */
  void savePersonAndFace(User user,String operationType);

  Map<Object, Object> queryAllCount();
}
